﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using FbKPI.Model;
using FbKPI.Controller;


namespace FbKPI.Facade.Validator
{
    public class PrivilegeValidator
    {
        public string ValidateOnSave(Privilege Privileges)
        {
            string msg = "OK";
            if (Privileges.Description.Trim().Length <= 0)
                msg = "Please Enter Privilege Description";
            return msg;
        }

        public string ValidateOnUpdate(Privilege Privileges)
        {
            string msg = "OK";
            if (Privileges.Description.Trim().Length <= 0)
                msg = "Please Enter Privilege Description";
            return msg;
        }
    }
}